import React, {useEffect} from 'react';
import {Image, View, StatusBar} from 'react-native';

const index = ({navigation}) => {
  useEffect(() => {
    setTimeout(() => {
      navigation.replace('Index');
    }, 1000);
  }, []);
  return (
    <View
      style={{
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#140000',
      }}>
      <StatusBar hidden={true} />
      <Image source={require('../images/splash.jpg')} />
    </View>
  );
};

export default index;
